<?
if(!session_id()) session_start();
if(!isset($_SESSION["session_message"])){
	$_SESSION["session_message"] = "";
}	
$session_login = "log";
$session_act = "act";

if(isset($_GET['page']))
$page = $_GET['page'];
if(isset($_REQUEST[$session_act])){
	if ($_REQUEST[$session_act]=='logout'){
		$_SESSION[$session_login] = "";
		unset($_SESSION[$session_login]);	
	}
}
if(!isset($_SESSION[$session_login])){
	if($_SESSION[$session_login] == ""){
		header("Location: login.php");
	}
}

require("../config.php");
require("../common_start.php");
include("../lib/func.lib.php");

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../lib/cssAdmin.css" rel="stylesheet" type="text/css">
<title>Control Panel</title>
<script language="javascript" src="../lib/javascript.lib.js"></script>
<script language="javascript" src="images/calendar.js"></script>
<script language="javascript" src="images/calendar-en.js"></script>
<script language="javascript" src="images/calendar-setup.js"></script>
<link title="win2k-cold-1" media="all" href="images/calendar-system.css" type="text/css">
</head>

<body>
<table border="0" bordercolor="0069A8" style="border-collapse: collapse" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="3"><? include("panel_Top.php")?></td>
  </tr>
  <tr>
    <td width="16%" valign="top"><? include("panel_Left.php")?></td>
    <td valign="top"><table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#0069A8" width="100%">
        <tr>
          <td width="5"></td>
          <td><table border="1" bordercolor="#0069A8" style="border-collapse: collapse" cellSpacing="0" cellPadding="0" width="100%">
              <tr align="center">
                <td align="center" class="title" height="20"><? include("processTitle.php")?></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td width="5"></td>
          <td><? include("processFrame.php")?></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td colspan="3"><? include("panel_Bottom.php")?></td>
  </tr>
</table>
</body>
</html>
<? require("../common_end.php") ?>